<div class="modal-header">
  <h3 class="modal-title">配置设置</h3>
</div>
<div class="modal-body config-detail">
  <form name="environForm" novalidate="novalidate">
    <div class="row">
      <p>配置名称</p>
      <input type="text" name="config_name" ng-model="vm.config.config_name" style="width:94.5%;" required>
      <div ng-if="environForm.config_name.$invalid" ng-messages="environForm.config_name.$error">
        <label class="error-messages" ng-message="required"> <i></i>
          不能为空
        </label>
      </div>
    </div>
    <div class="row">
      <p>文件</p>
              <input type="file" class="select-file" ngf-select name="file" ng-model="file"  ngf-model-invalid="errorFile" ngf-multiple="false" custom-file-change="vm.addFile">
    </div>
  </form>
</div>
<div class="modal-footer" style="clear: both">
  <button class="btn btn-default-dark"  ng-click="vm.ok()" ng-disabled="environForm.$invalid">确认</button>
  <a class="btn btn-default-dark" ng-click="vm.cancel()">取消</a>
</div>